package com.game.messagebean.dubbo;

import com.baidu.bjf.remoting.protobuf.FieldType;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import com.game.message.jpb.SuperJPB;
import com.game.message.messagecode.DubboMsg;
import com.game.message.messagecode.MsgStage;
import org.springframework.stereotype.Component;

/**
 * Created by legend9999 on 2016/4/25.
 */
@Component
public class RegisteResp extends SuperJPB {
    @Protobuf(fieldType = FieldType.INT32, order = 101, required = true)
    private int result;
    @Protobuf(fieldType = FieldType.STRING, order = 103, required = true)
    private String message;
    @Protobuf(fieldType = FieldType.INT64, order = 104, required = true)
    private long serverTime;

    public int getMsgId() {
        return MsgStage.ACK + DubboMsg.Regist;
    }


    public void setResult(byte result) {
        this.result = result;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public long getServerTime() {
        return serverTime;
    }

    public void setServerTime(long serverTime) {
        this.serverTime = serverTime;
    }
}
